]> dgit.raspbian.org Git - gnome-shell.git/commit
signalTracker: Avoid getting the same owner object proto multiple times
authorMarco Trevisan (Treviño) <mail@3v1n0.net>
Wed, 6 Jul 2022 15:50:57 +0000 (17:50 +0200)
committerMarco Trevisan (Treviño) <mail@3v1n0.net>
Wed, 6 Jul 2022 16:24:12 +0000 (18:24 +0200)
commitad0f11f02482c28868bcd5dbe0fa67f4f3ad8ca4
tree34cef43c5dc6b3377a246029a3a6b7917e730790
parent74720f250e51f9f7ae65b9be18cfde53b7103ae9
signalTracker: Avoid getting the same owner object proto multiple times

While untracking an object we used to compute it's proto for each signal
we were disconnecting from, while this is not needed when we're just
iterating over all the same owner signals, so let's add few more
functions to compute an object prototype, and repeat the disconnections
in the simplest way we can.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2366>
js/misc/signalTracker.js